Python | Remove all characters except letters and numbers
Given a string, the task is to remove all the characters except numbers and alphabets. String manipulation is a very important task in a day to day coding and web development. Most of the requests and responses in HTTP queries are in the form of Python strings with sometimes some useless data which we need to remove....
read more
Python – Phrase removal in String
Sometimes, while working with Python strings, we can have a problem in which we need to extract certain words in a string excluding the initial and rear K words. This can have application in many domains including all those include data. Lets discuss certain ways in which this task can be performed....
read more
Python – Get Nth word in given String
Sometimes, while working with data, we can have a problem in which we need to get the Nth word of a String. This kind of problem has many application in school and day-day programming. Let’s discuss certain ways in which this problem can be solved....
read more
Python – Escape reserved characters in Strings List
Given List of Strings, escape reserved characters in each String....
read more
Python | Ways to check if given string contains only letter
Given a string, write a Python program to find whether a string contains only letters and no other keywords. Let’s discuss a few methods to complete the task....
read more
Python | Ways to sort list of strings in case-insensitive manner
Given a list of strings, A task is to sort the strings in a case-insensitive manner. Given below are a few methods to solve the task....
read more
Python | Get the string after occurrence of given substring
Sometimes, more than finding a substring, we might need to get the string that is occurring after the substring has been found. Let’s discuss certain ways in which this task can be performed using Python....
read more
Python | Consecutive Character Maximum difference
Sometimes, we might have a problem in which we require to get the maximum difference of 2 numbers from list but with a constraint of having the numbers in successions. This type of problem can occur while competitive programming. Let’s discuss certain ways in which this problem can be solved....
read more
Python – Remove Dictionary Key Words
Sometimes, while working with Python strings, we can have a problem in which we need to remove all the words from a string that is part of the key of the dictionary. This problem can have applications in domains such as web development and day-day programming. Let’s discuss certain ways in which this task can be performed....
read more
Python | Convert String to list of tuples
Sometimes, while working with data, we can have a problem in which we have a string list of data and we need to convert the same to list of records. This kind of problem can come when we deal with a lot of string data. Let’s discuss certain ways in which this task can be performed....
read more
Python | Case Counter in String
Sometimes, while working with Python String, we can have a problem in which we need to separate the lower and upper case count. This kind of operation can have its application in many domains. Let’s discuss certain ways in which this task can be done....
read more
Python – Sort by Uppercase Frequency
Given a list of strings, perform sorting by frequency of uppercase characters....
read more